from uuid import uuid4
from Connector.client import res_success


class CmdAppActorsList:
    name = "app_actors_list"
    id = uuid4()

    def __init__(self, service, Params, Tag, Type):
        self.service = service
        self.params = Params
        self.tag = Tag
        self.type = Type

    async def execute(self):
        r = self.service.app.get_actors_list()
        print(r)
        await res_success(self.params.get("Tag"), self.type, r)
